import request from '@/utils/request'

// 查询gameBox列表
export function listGameBox(query) {
  return request({
    url: '/system/gameBox/list',
    method: 'get',
    params: query
  })
}

// 查询gameBox详细
export function getGameBox(gameBoxId) {
  return request({
    url: '/system/gameBox/' + gameBoxId,
    method: 'get'
  })
}

// 新增gameBox
export function addGameBox(data) {
  return request({
    url: '/system/gameBox',
    method: 'post',
    data: data
  })
}

// 修改gameBox
export function updateGameBox(data) {
  return request({
    url: '/system/gameBox',
    method: 'put',
    data: data
  })
}

// 删除gameBox
export function delGameBox(gameBoxId) {
  return request({
    url: '/system/gameBox/' + gameBoxId,
    method: 'delete'
  })
}
